package com.hspedu.innerclass_;

public class InnerClassExercise01 {
    public static void show(AA a){
        a.cry();
        System.out.println(a.getClass());
    }

    public static void main(String[] args) {
        show(new AA() {
            @Override
            public void cry() {
                System.out.println("AA cry");
            }
        });
    }
}


interface AA{
    public void cry();
}